<?php


namespace app\common\model;

use think\Model;

class UserCash extends Model
{
    /**
     * 获取用户提现中的金额
     * @param $user_id
     * @return float
     */
    public static function getApplyMoeny($user_id){
        return self::where([
            ['user_id','=',$user_id],
            ['state','=',10]
        ])->sum('money');
    }
}
